﻿using System;
using System.ComponentModel.DataAnnotations;
using Data.AggregateRoot;

namespace Data.Entities
{
    /// <summary>
    /// 登录日志
    /// </summary>
    public class SysLoginLog : EntityBase
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(200)]
        [Required]
        public string UserName { get; set; }
        /// <summary>
        /// Ip地址
        /// </summary>
        [StringLength(20)]
        [Required]
        public string IpAddress { get; set; }
        /// <summary>
        /// 物理地址
        /// </summary>
        [StringLength(50)]
        [Required]
        public string MacAddress { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(2000)]
        public string Description { get; set; }
    }
}